package com.ruoyi.activiti.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.ruoyi.activiti.domain.BizProcessInstanceRelation;
import org.apache.ibatis.annotations.Select;

/**
 * 【请填写功能名称】Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-19
 */
@Repository
public interface BizProcessInstanceRelationExtMapper extends BizProcessInstanceRelationMapper
{
    /**
     * 查询流程實例與業務表關係
     * 
     * @param processInstances 流程實例ID
     * @return
     */
    @Select("<script>" +
                "select * from biz_process_instance_relation where process_instance_id in \n" +
                " <foreach item='id' collection='array' open='(' separator=',' close=')'>\n" +
                "          #{processInstances}\n" +
                " </foreach>" +
            "</script>")
    List<BizProcessInstanceRelation> selectBizProcessInstanceRelationByIds(List<String> processInstances);


}
